package com.umeox.watch.moto.launcher.fragment;


import static com.umeox.watch.moto.launcher.constant.Constant.KEY_UNBIND;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.umeox.moto.watch.themes.app.ThemeFragment;
import com.umeox.watch.moto.launcher.R;
import com.umeox.watch.moto.launcher.ui.BindCodeActivity;


/**
 * Created by Rambo 2019-07-04
 * Describe:
 */
public class UnbindFragment extends ThemeFragment {

    private int mUnbindTag;

    @Override
    protected int getLayoutId() {
        return R.layout.frag_unbind;
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        final Bundle bundle = getArguments();
        if (bundle != null) {
            mUnbindTag = bundle.getInt(KEY_UNBIND);
        }
    }


    @Override
    protected void initView(View rootView) {
        TextView nextAb = rootView.findViewById(R.id.next_tv);
        nextAb.setOnClickListener(v -> BindCodeActivity.launch(mContext));

    }
}
